<?php
include("../../config.php");
ini_set('display_errors', 'Off');
include("../../classes/connect.php");
require_once('../../classes/class.jira.php');
require_once("../../classes/class.gmail.php");

function getuser($username,$pass,$project,$host){
		$config->username= $username;
		$config->password= $pass;
		$config->port= "";
		$config->host= $host;
		$query->project = $project;

		$queryIssue = new Jira($config);
		$array=$queryIssue->queryUser($query);
		$response = json_decode($array->responseBody);
		return $response;
		}
		
$a=getuser('ashen.s','zaq1xsw2!@#$%',$project,$host);
foreach($a as $key){
	echo $key->name;
}


?>

<!DOCTYPE html>
<html>
<head>
    <title>Column chart</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" >

    <link href="/content/shared/styles/examples-offline.css" rel="stylesheet">
    <link href="../styles/kendo.dataviz.min.css" rel="stylesheet">

    <script src="../js/jquery.min.js"></script>
    <script src="../js/kendo.dataviz.min.js"></script>
    <script src="/content/shared/js/console.js"></script>
</head>
<body>    
        <div id="example" class="k-content">
            <div class="chart-wrapper">
                <div id="chart"></div>
            </div>
            <script>
                function createChart() {
                    $("#chart").kendoChart({
                        theme: $(document).data("kendoSkin") || "default",
                        title: {
                            text: "Internet Users"
                        },
                        legend: {
                            position: "bottom"
                        },
                        seriesDefaults: {
                            type: "column"
                        },
                        series: [
						<?for($i=5;$i>0;$i--){
						echo '{';
                        echo     'name: "PHP",';
                        echo     'data: [15.7, 16.7, 20, 23.5, 26.6]';
                        echo '},';
						}?>
						{
                            name: "CSE",
                            data: [157, 16.7, 20, 23.5, 26.6]
                        },{
                            name: ".NET",
                            data: [6796, 68.93, 75, 74, 78]
                        }],
                        
                        categoryAxis: {
                            categories: [2005, 2006, 2007, 2008, 2009]
                        },
                        tooltip: {
                            visible: true,
                            format: ""
                        }
                    });
                }

                $(document).ready(function() {
                    setTimeout(function() {
                        // Initialize the chart with a delay to make sure
                        // the initial animation is visible
                        createChart();

                        $("#example").bind("kendo:skinChange", function(e) {
                            createChart();
                        });
                    }, 400);
                });
            </script>
        </div>

</body>
</html>